# CMake 最低版本号要求
cmake_minimum_required (VERSION 2.8)
# 项目信息
project (ECG_SERVER_PRO)

# 添加 math 子目录
set (CMAKE_INSTALL_PREFIX /opt/ECG)
INCLUDE_DIRECTORIES( /opt/ECG/include)

if(INSTALL_HEAD_FILE_ONLY)

message(STATUS "just install head files...")

else(INSTALL_HEAD_FILE_ONLY)

message(STATUS "compile project...")

SET(SRC_LIST main.cpp)

add_executable(HeartMoniter ${SRC_LIST})

endif(INSTALL_HEAD_FILE_ONLY)

add_subdirectory(common)
add_subdirectory(utitl)
add_subdirectory(driver)
add_subdirectory(device)
add_subdirectory(db)
add_subdirectory(bus)
add_subdirectory(base)
add_subdirectory(HAL)
add_subdirectory(func)
add_subdirectory(filter)
add_subdirectory(Codec)
add_subdirectory(collector)
add_subdirectory(test)

